package com.hoperun.checkcloth.util;


import com.google.gson.Gson;

public class ParseUtils {

    public static <T> T parse(String json, Class<T> clazz) {
        try {
            if (json != null) {
                Gson gson = new Gson();
                return gson.fromJson(json, clazz);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}